<?php

require('../../../../define.php');
require_once(SCRIPTS_PATH . '/phpthumb/ThumbLib.inc.php');

//$filename = SCRIPTS_PATH . '/phpthumb/examples/test.jpg';
$filename = 'test.jpg';
$thumb = PhpThumbFactory::create($filename);
//$thumb->adaptiveResize(200);
//$thumb->resize(0,350);
//$thumb->resizePercent(50);
//$thumb->crop(100, 200, 200, 100);
//$thumb->cropFromCenter(300,200);
//$thumb->rotateImage('CVW');
//$thumb->rotateImageNDegrees(45);
$thumb->resizePercent(50)->rotateImageNDegrees(45)->save('file.jpg');
$thumb->show();